@import './reset';

.container {
    min-width: 1200px;

    // 主题颜色
    $themeColor: #1b2a65;
    $themeColor-Opa: #1b2a6583;

    // 居中盒子
    %boxCenter {
        display: flex;
        flex-direction: column;
        align-items: center;
        // background-color: greenyellow;
    }

    header {
        background-color: #fff;
        @extend %boxCenter;

        @import './nav';

        // 横幅大图
        .banner {
            max-width: 100%;
            @extend %boxCenter;
            position: relative;

            img {
                width: 100%;
                display: block;
            }

            .imgTitle {
                width: 1200px;
                // border: 1px solid red;
                position: absolute;
                color: #fffefe;

                .title {
                    position: inherit;
                    top: 150px;
                    left: 45px;
                    width: 525px;
                    height: 245px;
                    background-color: $themeColor-Opa;
                    text-align: right;
                    padding: 0 25px;
                    box-sizing: border-box;

                    p:first-child {
                        font-size: 41px;
                        margin: 55px 0 10px;
                    }

                    p:last-child {
                        font-size: 57px;
                    }
                }
            }
        }
    }

    main {

        section>div {
            width: 1200px;
        }

        section:first-child {
            @extend %boxCenter;
            border-bottom: 1px solid $themeColor-Opa;
            margin-bottom: 55px;

            .content_1 {
                width: 1200px;
                height: 65px;

                ul {
                    margin-top: 2px;
                    width: 100%;
                    height: 100%;
                    display: flex;
                    justify-content: space-around;
                    align-items: flex-end;

                    li {
                        cursor: pointer;
                        padding: 20px 55px;
                        border-bottom: 2px solid transparent;

                        &:first-child {
                            color: $themeColor;
                            border-bottom-color: $themeColor;
                        }

                        &:hover {
                            color: $themeColor;
                            border-bottom-color: $themeColor;
                        }
                    }
                }
            }
        }

        section:last-child {
            @extend %boxCenter;
            margin-bottom: 50px;
            .content_2 {

                ul {
                    display: flex;
                    flex-wrap: wrap;
                    justify-content: space-between;
                    padding: 0 40px;
                    li {
                        width: 530px;
                        height: 470px;
                        margin-bottom: 65px;
                        // border: 1px solid red;

                        img {
                            width: 100%;
                            display: block;
                            // border: 1px solid red;
                        }

                        h3 {
                            font-size: 28px;
                            color: #333333;
                            font-weight: 400;
                            margin: 25px 0 15px;
                        }

                        div {
                            color: #999999;
                            font-size: 14px;
                            display: flex;
                            justify-content: space-between;

                            p:last-child {
                                margin-right: 40px;
                            }
                        }
                    }
                }

                button{
                    width: 100%;
                    height: 50px;
                    background-color: $themeColor;
                    color: #fff;
                    font-size: 18px;
                }
            }
        }
    }
    @import './footer';
}